<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>java</title>
    <link rel="stylesheet" th:href="@{/css/style.css}"/>
</head><body>
<div class="n-support">请使用Chrome、Safari等webkit内核的浏览器！</div><div class="n-head">
    <div class="g-doc f-cb">
        <div class="user" th:if="${session.user == null}">请<a th:href="@{/login}">[登录]</a></div>
        <div class="user" th:if="${session.user != null && session.user.userType == 1}">
            卖家你好，<span class="name" th:text="${session.user.username}"></span>！<a th:href="@{/logout}">[退出]</a>
        </div>
        <div class="user" th:if="${session.user != null && session.user.userType == 2}">
            买家你好，<span class="name" th:text="${session.user.username}"></span>！<a th:href="@{/logout}">[退出]</a>
        </div>
        <ul class="nav">
            <li><a th:href="@{/}">首页</a></li>
            <li th:if="${session.user != null && session.user.userType == 1}"><a th:href="@{/public}">发布</a></li>
            <li th:if="${session.user != null && session.user.userType == 2}"><a th:href="@{/account}">账务</a></li>
            <li th:if="${session.user != null && session.user.userType == 2}"><a th:href="@{/settleAccount}">购物车</a></li>
        </ul>
    </div>
</div><div class="g-doc">
    <div class="n-result">
        <h3>编辑成功！</h3>
        <p><a th:href="@{/show?id=}+${commodity.id}">[查看内容]</a><a th:href="@{/}">[返回首页]</a></p>
    </div>
</div>
<div class="n-foot">
    <p>版权所有：网易云课堂<a href="http://mooc.study.163.com/smartSpec/detail/85002.htm">Java开发工程师(Web方向)</a>微专业团队</p>
</div></body>
</html>